Git For Beginners
Git is the system based on the idea of Source Code management (SCM)
Git is all about keeping old versions of code.
The main advantages of SCM/Git are:
- Keeps all the history of the project
- Creates standard versioning system
- Makes it easy to revert to older version
- Backing up changes automatically
- Creates the ability to view changes in real-time
- Creates a way to see the evolution of the code over-time
Git's circle of life are build on 4 "environments"
- 1. Workspace - the IDE
- 2. Staging env - the place where you put the files to be sent
- 3. Local repository - the system handling the versioning system
- 4. Remote repository - the system in the LAN/WAN handling versioning
The terms and commands used in Git are:
- Initialize: git init(3>>1)/ git clone (4>>1)
- Update: git pull (4>>1)/ git fetch (4>>3)
- Changes - git add (1>>2), git commit (2>>3), git push 3>>4)
- Revert - git checkout (2>>1)
- Diff - git diff (1 2)